﻿using Basic.FormRemoteModel.PageCalculate;
using Basic.FormRemoteModel.PageCalculate.Model;
using Basic.UserFormService.Page.Interface;
using WeDonekRpc.Client.Interface;

namespace Basic.UserFormService.RpcEvent
{
    internal class DataTableCalculateEvent : IRpcApiService
    {
        private readonly IDataTableCalculate _Service;

        public DataTableCalculateEvent ( IDataTableCalculate service )
        {
            this._Service = service;
        }
        public DataTableResult CalculateDataTable ( CalculateDataTable obj )
        {
            return this._Service.Query(obj.Param, obj.Paging);
        }
    }
}
